home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / ABUSESRC.ZIP / AbuseSrc / imlib / port / mac / jdir.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-11  |  711 b   |  47 lines

  1.  
  2. #if defined( __WATCOMC__ )
  3. #include <direct.h>
  4. #elif defined( __POWERPC__ )
  5. #else
  6. #include <dirent.h>
  7. #endif
  8.  
  9. #include <stdlib.h>
  10. #include <string.h>
  11. #include "jmalloc.hpp"
  12. #include <unistd.h>
  13.  
  14. void get_directory(char *path, char **&files, int &tfiles, char **&dirs, int &tdirs)
  15. {
  16.     // get files in directory in path into files & tfiles
  17.     // get dirs in directory in path into dirs & tdirs
  18. }
  19.  
  20. char MacName[512];
  21.  
  22. extern char *macify_name(char *s);
  23. char *macify_name(char *s)
  24. {
  25.     char *p;
  26. /*
  27.     
  28.     p = &MacName[0];
  29.     while (*p = *s++) {
  30.         if (*p=='/')
  31.             *p = '_';
  32.         p++;
  33.     }
  34.     
  35.     return MacName;
  36. */
  37.     p = s;
  38.     while (*p) {
  39.         if (*p=='/')
  40.             *p = '_';
  41.         p++;
  42.     }
  43.     return s;
  44. }
  45.  
  46.  
  47.